class InitCountMethods < ActiveRecord::Migration
  def self.up
    c1 = CountMethod.new(:name => "simple_total", :zh => "所有题目分值+加权分值之和", :method_type => "total")
    c2 = CountMethod.new(:name => "simple_average", :zh => "总分除以题目数", :method_type => "avg")

    c1.save
    c2.save
  end

  def self.down
    CountMethod.delete_all
  end
end
